package org.javaboy.business.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "order")
public interface OrderService {
    @PostMapping("/order")
    Map<String, Object> order(@RequestParam("userId") Integer userId, @RequestParam("commodityId") Integer commodityId, @RequestParam("count") Integer count);
}
